<template>
  <div class="audition145">
    <v-md-preview :text="text1" />
  </div>
</template>

<script>
const prefix = '``` js'
const suffix = '```'
export default {
  name: 'Audition145',
  data() {
    return {
      text1: `${prefix}
      var arr1 = [1, 2]
      var arr2 = [3, [4]]
      // 方法一
      var arr3 = [...arr1, ...arr2]
      console.log(arr3)
      // 方法二
      var arr4 = arr1.concat(arr2)
      console.log(arr4)
      // 方法三
      var arr5 = []
      arr5.push(...arr1)
      arr5.push(...arr2)
      console.log(arr5)
      \n${suffix}`,
    }
  }
}
</script>

<style>

</style>